/*
 * UserCenter.h
 *
 *  Created on: 2013-2-6
 *      Author: Dspark
 */

#ifndef USERCENTER_H_
#define USERCENTER_H_

#include "../bo/User.h"
#include "BugetCreator.h"
#include "BugetModifier.h"
#include "BugetsSummary.h"
#include "UserModifier.h"
#include <qscrollbar.h>
#include <qevent.h>

class UserCenter : public QWidget{
	Q_OBJECT
public:
	UserCenter(User& u);
	virtual ~UserCenter();
protected Q_SLOTS:
	void slt_createBuget();
	void loadData();
	void loadProjects();
	void loadDoing();
	void loadDone();
	void slt_editBuget();
	void slt_deleteBuget();
	void slt_viewAccpetBugets();
	void slt_viewBugetsSummary();
	void slt_modifyPassword();
	void slt_exit();
protected:
	void initUI();


	User& user;
	QGridLayout layout;
	QLabel welcome;
	QPushButton bt_modify, bt_logout,bt_makeBuget,bt_editBuget,bt_deleteBuget,bt_viewBuget,bt_viewAcceptBugets,bt_refresh;
	QTableView tabProjects,tabDoing, tabDone;
	QStandardItemModel modelProjects,modelDoing, modelDone;
};

#endif /* USERCENTER_H_ */
